package com.aeroyun.macross.modular.system.model;

import com.baomidou.mybatisplus.enums.IdType;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 农户
 * </p>
 *
 * @author aeroyun
 * @since 2018-08-17
 */
@TableName("cs_peasant_household")
public class PeasantHousehold extends Model<PeasantHousehold> {

    private static final long serialVersionUID = 1L;

    /**
     * 农户ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 户名
     */
    @TableField("peasant_household_name")
    private String peasantHouseholdName;
    /**
     * 地址
     */
    @TableField("peasant_household_address")
    private String peasantHouseholdAddress;
    /**
     * 所属村庄
     */
    @TableField("village_id")
    private Integer villageId;
    /**
     * 贷款余额
     */
    @TableField("loan_balance")
    private String loanBalance;
    /**
     * 存款银行
     */
    @TableField("deposit_bank")
    private String depositBank;
    /**
     * 更新时间
     */
    @TableField("update_time")
    private String updateTime;
    /**
     * 经度
     */
    private String longitude;
    /**
     * 纬度
     */
    private String latitude;
    /**
     * 家庭成员数量
     */
    private String population;
    /**
     * 家庭年纯收入
     */
    @TableField("annual_pure_income")
    private BigDecimal annualPureIncome;
    /**
     * 是否删除
     */
    @TableField("is_deleted")
    private Integer isDeleted;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getPeasantHouseholdName() {
        return peasantHouseholdName;
    }

    public void setPeasantHouseholdName(String peasantHouseholdName) {
        this.peasantHouseholdName = peasantHouseholdName;
    }

    public String getPeasantHouseholdAddress() {
        return peasantHouseholdAddress;
    }

    public void setPeasantHouseholdAddress(String peasantHouseholdAddress) {
        this.peasantHouseholdAddress = peasantHouseholdAddress;
    }

    public Integer getVillageId() {
        return villageId;
    }

    public void setVillageId(Integer villageId) {
        this.villageId = villageId;
    }

    public String getLoanBalance() {
        return loanBalance;
    }

    public void setLoanBalance(String loanBalance) {
        this.loanBalance = loanBalance;
    }

    public String getDepositBank() {
        return depositBank;
    }

    public void setDepositBank(String depositBank) {
        this.depositBank = depositBank;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    public String getLongitude() {
        return longitude;
    }

    public void setLongitude(String longitude) {
        this.longitude = longitude;
    }

    public String getLatitude() {
        return latitude;
    }

    public void setLatitude(String latitude) {
        this.latitude = latitude;
    }

    public String getPopulation() {
        return population;
    }

    public void setPopulation(String population) {
        this.population = population;
    }

    public BigDecimal getAnnualPureIncome() {
        return annualPureIncome;
    }

    public void setAnnualPureIncome(BigDecimal annualPureIncome) {
        this.annualPureIncome = annualPureIncome;
    }

    public Integer getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(Integer isDeleted) {
        this.isDeleted = isDeleted;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "PeasantHousehold{" +
        "id=" + id +
        ", peasantHouseholdName=" + peasantHouseholdName +
        ", peasantHouseholdAddress=" + peasantHouseholdAddress +
        ", villageId=" + villageId +
        ", loanBalance=" + loanBalance +
        ", depositBank=" + depositBank +
        ", updateTime=" + updateTime +
        ", longitude=" + longitude +
        ", latitude=" + latitude +
        ", population=" + population +
        ", annualPureIncome=" + annualPureIncome +
        ", isDeleted=" + isDeleted +
        "}";
    }
}
